package com.yb.daoImpl;


import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import com.yb.dao.userDao;
import com.yb.entity.User;

public class userDaoImpl extends HibernateDaoSupport implements userDao {



	public User getById(int id) {

		return getHibernateTemplate().get(User.class, id);

	}

	public void save(User user) {

		getHibernateTemplate().save(user);

	}

}
